package com.gp.dwt.service.impl;

import com.gp.dwt.base.Result;
import com.gp.dwt.mapper.MenuMapper;
import com.gp.dwt.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MenuServiceImpl implements MenuService {

    @Resource
    private MenuMapper menuMapper;
    @Override
    public Result getMenu(Long userRoleId) {
        return Result.responseResult(menuMapper.getMenuList(userRoleId));
    }
}
